package com.fduss.sota.service;

import com.fduss.sota.domain.Company;
import com.fduss.sota.domain.RiskCheckPlan;
import com.fduss.sota.domain.RiskCheckResultSheet;
import com.fduss.sota.domain.RiskCheckTemplate;

import java.sql.Date;
import java.util.List;

/**
 * @Author duocai
 * @Date 2017/6/18
 * @Time 21:05
 */
public interface RiskCheckPlanService {

    /**
     *  create a risk check plan
     * @param template
     * @param companies
     * @param endDate
     */
    RiskCheckPlan createRiskCheckPlan(RiskCheckTemplate template, List<Company> companies, Date endDate);

    RiskCheckPlan get(Long id);

    List<RiskCheckPlan> getAll();

    void delete(long id);

    void delete(RiskCheckPlan riskCheckPlan);

    void deleteAll();

    void updateRiskCheckResultSheet(RiskCheckResultSheet riskCheckResultSheet);

    List<RiskCheckResultSheet> getRiskCheckResultSheets(Company company);
}
